<div class="path"><i class="iconfont">&#xf108;</i> <a href="###">开始</a> / <a href="{url('tpl/index',array(id=>$frameid))}">模板管理</a>{foreach $path as $key => $vo}
<?php $pathdir = $key?$pathdir.'/'.$vo:$vo;?>
{if $dir} / <a href="{url('tpl/index',array(id=>$frameid,dir=>$pathdir))}">{$vo}</a>{/if}
{/foreach}</div>
<div class="w600">
<div class="h300 m5" style="overflow-y:auto">
<table class="table">
<thead><tr><th class="fn-tac w60">属性</th><th>名称</th></tr></thead>
<tbody>
{if $dir}<?php $newdir = $dir.'/';?>{/if}
{foreach $folder as $vo}
<tr>
    <td class="fn-tac">目录</td>
    <td><i class="iconfont blue fn-f14" title="文件夹">&#xf07c;</i> <a title="文件夹" href="{url('tpl/index',array(id=>$frameid,dir=>$newdir.$vo))}" class="fb f14">{$vo}</a>
</td>
</tr>
{/foreach}
{foreach $files as $vo}
<tr>
    <td class="fn-tac">.html</td>
    <td><i class="iconfont blue fn-f14" title="文件">&#xf0f6;</i> <a href="###" title="选择模板" class="pt" tpl="{$newdir}{current(explode('.', $vo))}">{$vo}</a></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
<script language="javascript">
Do('dialog',function(){
    $('.pt').click(function(){
        var origin = artDialog.open.origin;
        var aValue = $(this).attr("tpl");
        var input = origin.document.getElementById('{$frameid}');
        input.value = aValue;
        input.select();
        $.dialog.close()
    })
})
</script>
